﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.OleDb;
using System.ServiceModel;
using MWTWorkUnitMgmtTool.BusinessEntities;

namespace MWTWorkUnitMgmtToolServiceLibrary
{
    [ServiceContract]
    public interface IMappingService
    {
        [OperationContract]
        IEnumerable<Mapping> GetMappingsByBOM(string itemCode);
        [OperationContract]
        IEnumerable<Mapping> GetAllMappings();
        [OperationContract]
        Mapping GetMappingsByID(int id);
        [OperationContract]
        int InsertMapping(string workUnitCode, string locationCode, string itemCode);
        [OperationContract]
        int UpdateMapping(string workUnitCode, string locationCode, string itemCode);
        [OperationContract]
        int DeleteMapping(string workUnitCode, string locationCode, string itemCode);
        [OperationContract]
        void UploadMappings(string filePath);
    }
}
